import React from 'react'
import {Switch,Redirect,Route} from 'react-router-dom'
import Home from "./home";
import productAddUpdate from "./addUpdate";
import productDetail from "./detail";
import './product.scss'
export default class product extends React.Component {
    render() {
        return (
            <Switch>
                <Route path='/index/product/home' component={Home} exact/>
                <Route path='/index/product/addupdate' component={productAddUpdate}/>
                <Route path='/index/product/detail' component={productDetail}/>
                <Redirect to='/index/product/index' />
            </Switch>
        )
    }
}
